﻿@model List<LeEdu.MODEL.Topic>
@{
    ViewBag.Title = "";
    LeEdu.MODEL.Topic topic = ViewBag.topic;
    LeEdu.BLL.TopicBLL topbll = new LeEdu.BLL.TopicBLL();
}
<script src="/Content/Index/js/jquery-2.1.4.min.js"></script>


<div id="main">
    @*课程分布视图*@
    @Html.Partial("Front-Partial1")
    <div id="detailContent">
        <div class="detailContentLeft-tags">
            <a href="/Home/ClassHour/@ViewBag.course.CoursesId">
                <div id="videoSelect" class="detailContentLeft-video-tag">视频教程</div>
            </a>
            <a href="/Home/question">
                <div id="questionSelect " class="detailContentLeft-video-tag"><h4>互动问答</h4></div>
            </a>
            <a href="/Home/download">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">资源下载</div>
            </a>
            <a href="/Home/ShowNotes">
                <div id="detail-resource-tab" class="detailContentLeft-video-tag">笔记</div>
            </a>
            <a href="/Home/Estimat">
                <div id="estimate" class="detailContentLeft-video-tag">评价</div>
            </a>
            <a href="/Home/topics">
                <div id="estimate" class="detailContentLeft-video-tagSelect">话题</div>
            </a>

        </div>

        <!--呈现某个系列课程的具体内容页面-->
        <div id="detailContentLeft-question-list">
            <div id="question-list-left">
                <div id="question-list">
                    <div class="question-tag">
                        <div style="margin-top:20px;">
                            <a href="/Home/topics" style="margin-left:20px;margin-right:20px; font-size:16px;">全部</a>
                            <a href="/Home/topics/?id=1" style="font-size:16px;">精品</a>
                            @*<span style="margin-left:675px;"><button class="btn btn-default" style="height:40px;">发话题</button></span>*@
                            <div style="margin-left: 675px;padding-bottom:20px;" class="booui_bluebutton booui_button_small" id="srtting-saveBtn"><a style="height:24px; font-size:18px;color:#ffffff" href="/Home/ADDtie">发话题</a></div>
                           
                        </div>
                                             
                        <div class="clearBoth"></div>
                        
                    </div>
                    @{
                       
                        foreach (var item in Model)
                        {
                            
                        
                            <div id="tag-question-list">
                                <div class="question-item">
                                   
                                    <div class="question-content row">
                                        <img class="img-thumbnail img-circle" style="width:40px;height:40px" src="~/Img/@item.UserInfo.Avatar">

                                        <a href="/Home/showTop/@item.ID" target="_blank"><pre style="margin:0px" class="question-text notice15" questionid="4499">@item.TopicTitle @{if (item.Attribute == 1) { <span class="label" style="background-color:#e42f2f;margin-left:10px;">精</span>}
                        }
                    </pre></a>

                                        <div class="question-time detial13">
                                            <div style="float: left;margin-right:10px;">
                                                <span style="font-weight: bold">@item.UserInfo.Uname</span>
                                                <span>提问于</span>
                                                <span>@topbll.DateStringFromNow(item.TopicTime)</span>

                                                @*回复人数统计*@
                                                @{
                          
                                                    LeEdu.BLL.TopicBLL topicbll = new LeEdu.BLL.TopicBLL();
                                                    List<LeEdu.MODEL.Topic> top = new List<LeEdu.MODEL.Topic>();
                                                    var  tt=  topicbll.getEntityList(t=>true).Where(t => t.TId == item.ID).ToList();
                          
                                                }
                                                @*浏览人数统计*@
                                             
                                                <span style="margin-left:350px">@(tt!=null?tt.Count():0) 回复 | @item.See 浏览</span>
                                            </div>

                                        </div>
                                        <div style="float:right;margin-right:10px;">

                                        </div>
                                    </div>

                                    <div class="clearBoth"></div>

                                </div>
                            </div>
                        }

                    }
                  

                </div>
            </div>


            @*讲师介绍局部视图*@
            @Html.Partial("Fronr-Partial2")
        </div>
        <div id="scourse-forbid-dialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
            <div class="modalTitleContent">
                <div class="modalTitle">提示</div>
                <div class="modalCloseButton"></div>
                <div class="clearBoth"></div>
            </div>
            <div id="scourse-forbid-content">
                <div class="notice16" id="scourse-forbid-title">
                    你尚未购买本课程，请购买后观看
                </div>
                <div class="mbtn bluebtn" id="scourse-forbid-button">知道了</div>
            </div>
        </div>
    </div>
    <input type="hidden" value="40" id="courseID">
</div>



